package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 药房
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Pharmacy implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 药房id
     */
    @TableId(value = "phaid", type = IdType.AUTO)
    private Integer phaid;

    /**
     * 医院id
     */
    private Integer hosid;

    /**
     * 药房名称
     */
    private String phaname;

    /**
     * 数据库名称
     */
    private String phadbsource;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getPhaid() {
        return phaid;
    }

    public void setPhaid(Integer phaid) {
        this.phaid = phaid;
    }

    public Integer getHosid() {
        return hosid;
    }

    public void setHosid(Integer hosid) {
        this.hosid = hosid;
    }

    public String getPhaname() {
        return phaname;
    }

    public void setPhaname(String phaname) {
        this.phaname = phaname;
    }

    public String getPhadbsource() {
        return phadbsource;
    }

    public void setPhadbsource(String phadbsource) {
        this.phadbsource = phadbsource;
    }

    @Override
    public String toString() {
        return "Pharmacy{" +
                "phaid=" + phaid +
                ", hosid=" + hosid +
                ", phaname='" + phaname + '\'' +
                ", phadbsource='" + phadbsource + '\'' +
                '}';
    }
}
